﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace WpfApplication1
{
    [XmlType("svg")]
    public class IWBSVGViewBox
    {
        [XmlAttribute("height")]
        public int Height { get; set; }
        [XmlAttribute("width")]
        public int Width { get; set; }
        [XmlAttribute("viewbox")]
        public string ViewBox { get; set; }

        [XmlArray("pageset")]
        [XmlArrayItem("page")]
        public List<IWBPage> Pages = new List<IWBPage>();

        public void AddPage(IWBPage page)
        {
            Pages.Add(page);
        }
    }
}
